// rgb-thing - a driver for controlled RGB lighting
// by Joe Hohertz  - started 20 January 2010
// See LICENSE.TXT for terms of use, and copyright information

// Timer routines for various purposes...

#include <avr/interrupt.h>

//unsigned int time1;       ;       //task scheduling timeout counters
//unsigned long time;

///////////////////////////////////////////////////////////////////////////////
// timer/counter0 overflow interrupt handler
///////////////////////////////////////////////////////////////////////////////

ISR(TIMER0_OVF_vect) __attribute__ ((naked));
ISR(TIMER0_OVF_vect) {
  //time++;
  //Decrement the three times if they are not already zero
  //if (time1>0)  --time1;
  //if (time2>0)  --time2;
  asm("reti"); // return from interrupt
}
